package cn.signalpha.modules.resource.dto;

import cn.signalpha.core.oss.model.PutFile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 数据传输对象实体类
 *
 * @author signalpha
 */
@Data
@ApiModel(value = "AttachDTO对象", description = "附件")
public class AttachDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@NotNull
	@ApiModelProperty(value = "分类id")
	private Long categoryId;

	@ApiModelProperty(value = "附件信息")
	private List<PutFile> detailList;

	@Data
	public static class TransferDTO implements Serializable {
		private static final long serialVersionUID = 1L;
		@NotBlank
		@ApiModelProperty(value = "附件id，逗号分隔")
		private String ids;
		@NotNull
		@ApiModelProperty(value = "分类id")
		private Long categoryId;
	}

}
